package com.lagou.edu.servlet;

import com.lagou.edu.content.MyApplicationContext;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

public class MyBaseServlet extends HttpServlet {
    @Override
    public void init() throws ServletException {

        // 解析注解
        try {
            MyApplicationContext myApplicationContext = new MyApplicationContext("com.lagou.edu");
            myApplicationContext.setFiled(this);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
